toFlow

inline fun <T : Any> () -> <ERROR CLASS>.toFlow(): <ERROR CLASS><T>

Convert a NodeJS stream to a flow. The resulting flow can be consumed multiple times.

The receiver lambda will be re-evaluated each time a terminal operator is used on the flow.

inline fun <T : Any> <ERROR CLASS>.toFlow(): <ERROR CLASS><T>

Convert a NodeJS stream to a flow. The resulting flow can only be consumed once.

For a repeatable flow use { stream }.toFlow().